/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-19 20:41:22
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-19 20:44:07
 * @别瞎看: 你个无脑牛马
 */
public class Test13{
    
        public static void main(String[] args) {
            Worker worker = new Worker("John Doe", "Male", "1990-01-01", 25, 100);
            Salesman salesman = new Salesman("Jane Smith", "Female", "1992-05-15", 2000, 500);
            Manager manager = new Manager("Mike Johnson", "Male", "1985-09-23", 5000);
            Floater floater = new Floater("Emma Watson", "Female", "1995-07-07", 40);
    
            System.out.println(worker + " - Salary: " + worker.calculateSalary());
            System.out.println(salesman + " - Salary: " + salesman.calculateSalary());
            System.out.println(manager + " - Salary: " + manager.calculateSalary());
            System.out.println(floater + " - Salary: " + floater.calculateSalary());
        }
    }
